package cn.johnyu.springdemo03;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import javax.sql.DataSource;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;

import analyser.FactorAnalyser;
import bean.Book;
import bean.MyBean;
import collector.Collector;
import collector.UsbCollector;
import service.WorkServic;
import view.LineViewer;
import view.Viewer;

/**
 * Hello world!
 *
 */
public class App {
	public static void main(String[] args) throws Exception{
		ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
		
		WorkServic ws=context.getBean(WorkServic.class);
		System.out.println(ws.getClass().getName());
		String rs=ws.work("john");
		System.out.println(rs);
	}
}
